﻿using System;
using System.Web.UI;
using SouthernLand.Common;

namespace SouthernLand.RaoVat
{
    public partial class CapNhatThanhCong : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblTitle.Text = "THÔNG BÁO";

            string strUrl = Globals.ApplicationPath;
            if (Globals.GetStringFromQueryString("Action").ToLower() == "edit")
            {
                lblMsg.Text = "Bạn đã chỉnh sửa tin rao thành công.";
                strUrl = (Globals.ApplicationPath + "Raovat/Detail.aspx?RaovatID=" +
                          Globals.GetIntFromQueryString("RaovatID"));
            }
            else
            {
                lblMsg.Text = "Chúc mừng, Bạn đã đăng tin thành công.";
                strUrl = (Globals.ApplicationPath + "Raovat/Detail.aspx?RaovatID=" +
                          Globals.GetIntFromQueryString("RaovatID"));
            }

            Response.Write("<meta http-equiv='refresh' content='3; url=" + strUrl + "'/>");
        }
    }
}